home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / dskctl20.zip / DISK.DOC < prev    next >
Text File  |  1991-09-08  |  16KB  |  346 lines

  1.                                      DISK
  2.  
  3. All you wanted to know about your disks, but didn't know how to ask.
  4.  
  5. DISK provides information about your disk drives and disk controller.  DISK
  6. gives you information that would take several other utilities including DEBUG to
  7. duplicate.  DISK is for those times when you need to know something about the
  8. physical characteristics of your drives as FDISK, DOS, and the BIOS understand
  9. them.
  10.  
  11. Let's say you have carefully studied the choices and have decided which hard
  12. disk to buy.  Now you need to know whether your disk controller will support
  13. that drive.  DISK can help you determine what you have to do to install a new
  14. drive and can give you the usage and formatting information on your current
  15. drive.
  16.  
  17. You may discover that your controller is ready to support your new drive just by
  18. changing the disk type through SETUP.  If your controller doesn't directly
  19. support your new drive, you will at least have enough information to use the
  20. DSKSET and DSKDRV utilities to configure your controller for the new drive. 
  21.  
  22. SHAREWARE
  23.  
  24. DISK and its related products BOOT, DSKSET, DSKDRV, DXTSET, and DXTDRV are 
  25. shareware.  If you decide to use them after a reasonable trial period (1 month), 
  26. you are obligated to pay for them.  The fee for continued use is $10.  For this, 
  27. you may use the products indefinitely and I will send you notice of any updates
  28. for one year.  For $25, I will send you the source code immediately and will
  29. send you any updates for one year.  These fees apply to any use of the products
  30. on a single computer including government agency and commercial use.  Volume
  31. discounts and site licenses are available to reduce the cost for large users.
  32.  
  33. Send the fees and any inquiries to:
  34.  
  35.                         Ronald Q. Smith
  36.                         11 Black Oak Road
  37.                         North Oaks, Mn. 55127-6204
  38.  
  39. You may also contact me via CompuServ mail at userid 71620,514.  I will be
  40. happy to respond to any problems and suggestions for future capabilities.
  41.  
  42. USING DISK
  43.  
  44. DISK displays information about both floppy and fixed disks and the fixed disk
  45. controller.  You may request information about either a logical drive (d:) or a
  46. physical drive (0, 1, 0F).
  47.  
  48. DISK d[:]
  49.  
  50. d may be any drive letter including floppy drives, fixed drives, and virtual
  51. drives.  The allocation information associated with the drive is displayed as
  52. shown in figure 1.
  53.  
  54. ================================================================================
  55.                      Figure 1.  Disk Allocation Information
  56.  
  57.  
  58. DISK Version 2.00 - Copyright 1989, 1991 Ronald Q. Smith
  59.  
  60. Information for drive C: volume label VOLUME_1 created Jul 18, 1989 10:48
  61.  
  62.  DISK  MEDIA   MAXIMUM          SECTORS/   HIDDEN  RESRVED  NUMBER  SEC/  ROOT
  63.  TYPE  DESCR  CYLINDERS  HEADS    TRACK   SECTORS  SECTORS    FATS  FAT    DIR
  64. _____  _____  _________  _____  ________  _______  _______  ______  ____  ____
  65. FIXED    F8         923      5        17       17        1        2   77   512
  66.  
  67.     TOTAL         TOTAL      SECTORS/    BYTES/      AVAILABLE      AVAILABLE
  68.     BYTES        CLUSTERS    CLUSTER     SECTOR        BYTES        CLUSTERS
  69. _____________  __________    ________    ______    _____________    _________
  70.  
  71.    33,462,272      16,339           4       512        4,812,800        2,350
  72. ================================================================================
  73.  
  74. DISK n[F]
  75.  
  76. n is a drive number and may be 0 or 1.  If an F follows the number, information
  77. about the floppy drive is displayed.  The BIOS parameter table is displayed for
  78. both fixed and floppy drives.  The partition table (created by FDISK) is
  79. displayed for fixed disks.  If any of the partitions are extended DOS partitions
  80. (partition type 5), the logical drive table for that partition is also dis-
  81. played.  See figure 2 for an example of the floppy disk display and figure 3 for
  82. an example of a fixed disk display.
  83.  
  84. ================================================================================
  85.                      Figure 2.  Floppy Disk Parameter Table
  86.  
  87.  
  88. DISK Version 2.00 - Copyright 1989, 1991 Ronald Q. Smith
  89.  
  90. Information for floppy disk 0
  91.  
  92. SECT      HEAD  HEAD   HEAD  STEP                             MOTOR MOTOR
  93. SIZE MAX  LOAD SETTLE UNLOAD RATE NORMAL FORMAT FORMAT  DATA  START WAIT
  94. BYTE SECT  MS    MS     MS    MS   GAP    GAP    FILL  LENGTH 1/8 S TICKS DMA
  95. ____ ____ ____ ______ ______ ____ ______ _____  _____   ____  _____ _____ ___
  96.  512    9    2     1    240     3   27     84     F6     255     8    37  YES
  97.  
  98. ================================================================================
  99.                      Figure 3.  Fixed Disk Drive Information
  100.  
  101.  
  102. DISK Version 2.00 - Copyright 1989, 1991 Ronald Q. Smith
  103.  
  104. Information for fixed disk 0
  105.  
  106.                        LAND  REDUC  WRITE               TIMEOUT
  107. TYPE   CYL   HD  SEC   ZONE  WRITE  PRECM  ECC  REC  STD  FMT  CHK  STP
  108. ____   ____  __  ___   ____  _____  _____  ___  ___  ___  ___  ___  ___
  109.  14     924   5   17   None      0      0  N/A  YES  N/A  N/A  N/A  N/A
  110.  
  111.                                                                            
  112.                                 PARTITION TABLE                            
  113.                                                                            
  114.        PART. PART.        STARTING       ENDING      RELATIVE     TOTAL    
  115.         NO.  TYPE  BOOT CYL.   HD SEC CYL.   HD SEC   SECTOR     SECTORS   
  116.                                                                            
  117.         1    X-DOS  NO   771    0   1  922    4  17    65,535      12,920
  118.                                                                            
  119.         2    NONE   NO     0    0   0    0    0   0         0           0
  120.                                                                            
  121.         3    NONE   NO     0    0   0    0    0   0         0           0
  122.                                                                            
  123.         4    DOS16  YES    0    1   1  770    4  17        17      65,518
  124.                                                                            
  125.  
  126. Press any key to see the logical device table for partition 1.
  127.  
  128.                                                                            
  129.                        PARTITION 1 LOGICAL DEVICE TABLE                    
  130.                                                                            
  131.       DEVICE PART.        STARTING       ENDING      RELATIVE     TOTAL    
  132.         NO.  TYPE  BOOT CYL.   HD SEC CYL.   HD SEC   SECTOR     SECTORS   
  133.        ____  _____ ____ _____  __ ___ ____   __ ____  ______     ________
  134.         1    DOS12  NO   771    1   1  922    4  17       17      12,903
  135.                                                                            
  136. ================================================================================
  137.  
  138.  
  139. DISK TA[BLE]
  140.  
  141. The BIOS disk parameter table entries for all disk types supported by your
  142. controller are displayed in edited form.  See figure 4 for a sample display and
  143. the section "The Format of the DISK Parameter Table" for a discussion of the
  144. contents.
  145.  
  146. ================================================================================
  147.                    Figure 4.  BIOS Fixed Disk Parameter Table
  148.  
  149.  
  150. DISK Version 2.00 - Copyright 1989, 1991 Ronald Q. Smith
  151.  
  152. BIOS disk parameter table.
  153.  
  154.                        LAND  REDUC  WRITE               TIMEOUT
  155. TYPE   CYL   HD  SEC   ZONE  WRITE  PRECM  ECC  REC  STD  FMT  CHK  STP
  156. ____   ____  __  ___   ____  _____  _____  ___  ___  ___  ___  ___  ___
  157.   1     610   4   17    686      0   None  N/A  YES  N/A  N/A  N/A  N/A
  158.   2     615   4   17    615      0    300  N/A  YES  N/A  N/A  N/A  N/A
  159.   3     615   6   17    615      0    300  N/A  YES  N/A  N/A  N/A  N/A
  160.   4     960   5   17   None      0    512  N/A  YES  N/A  N/A  N/A  N/A
  161.   5     920   9   17   None      0   None  N/A  YES  N/A  N/A  N/A  N/A
  162.   6   1,000   8   17   None      0    512  N/A  YES  N/A  N/A  N/A  N/A
  163.   7     900  15   17   None      0   None  N/A  YES  N/A  N/A  N/A  N/A
  164.   8     960   5   17   None      0   None  N/A  YES  N/A  N/A  N/A  N/A
  165.   9     600   4   17    656      0    128  N/A  YES  N/A  N/A  N/A  N/A
  166.  10     960   5   17    978      0    978  N/A  YES  N/A  N/A  N/A  N/A
  167.  11     614   4   17    665      0   None  N/A  YES  N/A  N/A  N/A  N/A
  168.  12   1,000   5   17   None      0    512  N/A  YES  N/A  N/A  N/A  N/A
  169.  13     600   4   17    665      0   None  N/A  YES  N/A  N/A  N/A  N/A
  170.  14     924   5   17   None      0      0  N/A  YES  N/A  N/A  N/A  N/A
  171.  
  172.  
  173. ================================================================================
  174.  
  175.  
  176. DISK TAX
  177.  
  178. The BIOS disk parameter table entries for all disk types supported by your
  179. controller are displayed as 16 hex values.  This information will help you
  180. create your own entry using DSKSET and DSKDRV.  See figure 5 for a sample
  181. display.
  182.  
  183. ================================================================================
  184.  
  185.                  Figure 5.  Hex BIOS Fixed Disk Parameter Table
  186.  
  187.  
  188. DISK Version 2.00 - Copyright 1989, 1991 Ronald Q. Smith
  189.  
  190. BIOS disk parameter table.
  191.  
  192. TYPE  HEX
  193.                                                      
  194.    1  62 02 04 00 00 FF FF 00 00 00 00 00 AE 02 11 00
  195.    2  67 02 04 00 00 2C 01 00 00 00 00 00 67 02 11 00
  196.    3  67 02 06 00 00 2C 01 00 00 00 00 00 67 02 11 00
  197.    4  C0 03 05 00 00 00 02 00 00 00 00 00 00 00 11 00
  198.    5  98 03 09 00 00 FF FF 00 08 00 00 00 00 00 11 00
  199.    6  E8 03 08 00 00 00 02 00 00 00 00 00 00 00 11 00
  200.    7  84 03 0F 00 00 FF FF 00 08 00 00 00 00 00 11 00
  201.    8  C0 03 05 00 00 FF FF 00 00 00 00 00 00 00 11 00
  202.    9  58 02 04 00 00 80 00 00 00 00 00 00 90 02 11 00
  203.   10  C0 03 05 00 00 D2 03 00 00 00 00 00 D2 03 11 00
  204.   11  66 02 04 00 00 FF FF 00 00 00 00 00 99 02 11 00
  205.   12  E8 03 05 00 00 00 02 00 00 00 00 00 00 00 11 00
  206.   13  58 02 04 00 00 FF FF 00 00 00 00 00 99 02 11 00
  207.   14  9C 03 05 00 00 00 00 00 00 00 00 00 00 00 11 00
  208. ================================================================================
  209.  
  210. FDISK and CHKDSK display some of the same information as DISK, but FDISK makes
  211. you walk through a series of menus.  A display of the BIOS parameter tables is
  212. not available with any of the common utilities.  DISK may only be an interesting
  213. addition to your set of utilities if you are not changing disk drives or working
  214. with multiple systems.  But, if you want to install a new drive or have to work
  215. with PCs that you have not set up yourself, DISK can be invaluable.
  216.  
  217.  
  218.                      THE FORMAT OF THE DISK PARAMETER TABLE
  219.  
  220. There are two disk parameter table formats, one for the PC/XT and one for the
  221. PC/AT.  Both require essentially the same information.
  222.  
  223.  
  224. PC/AT
  225.  
  226. The PC/AT disk controller BIOS and parameter tables are located in the system
  227. BIOS.  The format of the PC/AT parameter table is:
  228.  
  229. BYTE         SIZE   DESCRIPTION
  230.  0           Word   Total number of cylinders
  231.  2           Byte   Number of read/write heads(surfaces)
  232.  3           Word   Unused
  233.  5           Word   Starting write precompensation cylinder
  234.  7           Byte   Unused
  235.  8           Byte   Control byte
  236.                     Bit 7     No retry on disk errors
  237.                     Bit 6     No retry on ECC errors
  238.                     Bit 3     More than 8 heads
  239.  9           Byte   Not used
  240. 10           Byte   Not used
  241. 11           Byte   Not used
  242. 12           Word   Landing zone cylinder
  243. 14           Byte   Sectors/track
  244. 15           Byte   Reserved  
  245.  
  246. Offset 0(word) - Contains the total number of cylinders.  The drive specifica-
  247. tions will supply this number.  This number is 2 larger than the number that
  248. will be returned to you when you make a request to retrieve drive parameters. 
  249. The innermost cylinder is reserved as a test cylinder and the returned drive
  250. parameters give you the largest cylinder number (starting at 0) rather than the
  251. number of cylinders.
  252.  
  253. Offset 2(byte) - Contains the total number of read/write heads.  This is also
  254. the number of read/write surfaces.  Some disks have a clocking head/surface that
  255. is not used for data and is not included in this count.  The number in this
  256. field is 1 greater than the number returned by a request to retrieve drive
  257. parameters.  Again, the returned drive parameters give the highest head number
  258. (starting at 0) rather than the number of heads.
  259.  
  260. Offset 3(word) - Unused on a PC/AT.  Set to 0.
  261.  
  262. Offset 5(word) - Starting write precompensation cylinder.  Starting with this
  263. cylinder, the controller applies modified logic for determining bit timing on
  264. the disk surface.  Each cylinder on the disk contains the same number of bits
  265. but the inner (higher numbered) cylinders are substantially smaller than the
  266. outer cylinders thus packing the bits closer together.
  267.  
  268. Offset 7(byte) - Unused on a PC/AT.  Set to 0.
  269.  
  270. Offset 8(byte) - Control byte.  Bit 3 is set to a 1 if your disk has more than 8
  271. read/write heads.  Bits 6 or 7 may be set if you have a special device driver
  272. that does all its own device error recovery and does not want the controller to
  273. attempt automatic recovery, but these bits are usually 0.
  274.  
  275. Offset 9(byte) - Unused on a PC/AT.  Set to 0.
  276.  
  277. Offset 10(byte) - Unused on a PC/AT.  Set to 0.
  278.  
  279. Offset 11(byte) - Unused on a PC/AT.  Set to 0.
  280.  
  281. Offset 12(word) - Landing zone.  Value to be used by park programs.  Often equal
  282. to the total cylinders value at offset 0, but some drives permit seeking to
  283.  
  284. higher cylinder numbers than can be used to contain data.  The value may be zero
  285. if the drive automatically retracts its heads at power off.
  286.  
  287. Offset 14(byte) - Sectors per track.  Usually 17.
  288.  
  289. Offset 15(byte) - Reserved.  Set to 0.
  290.  
  291.  
  292. PC/XT
  293.  
  294. The PC/XT parameter table is located on the BIOS chip on the disk controller
  295. card.  This allowed the addition of optional controllers to a PC that was not
  296. originally designed to accommodate them.  Several of the fields are the same as
  297. in the PC/AT parameter table.  Those fields will be identified but not explained
  298. again.
  299.  
  300. BYTE         SIZE   DESCRIPTION
  301.  0           Word   Total number of cylinders
  302.  2           Byte   Number of read/write heads(surfaces)
  303.  3           Word   Reduced write current cylinder
  304.  5           Word   Starting write precompensation cylinder
  305.  7           Byte   Maximum ECC data burst length
  306.  8           Byte   Control byte
  307.                     Bit 7     No retry on disk errors
  308.                     Bit 6     No retry on ECC errors
  309.                     Bit 3     More than 8 heads
  310.                     Bits 0-2     Step rate
  311.  9           Byte   Timeout value for normal read/write operations
  312. 10           Byte   Timeout value for format operations
  313. 11           Byte   Timeout value for disk check operations
  314. 12           Word   Unused
  315. 14           Byte   Unused
  316. 15           Byte   Reserved  
  317.  
  318. Offset 0(word) - Normally all of the cylinder numbers are stored in Intel 80xxx
  319. order with the low-order byte first.  However, at least one XT controller stores
  320. the values high-order byte first.  Only the word fields (offsets 0, 3, 5, and
  321. 12) are affected.  DISK attempts to compensate for this inversion in the edited
  322. display.  The hex display will always show the bytes in the order the controller
  323. wants them.  The hex display shows the bytes in the order they actually appear
  324. in the table.
  325.  
  326. Offset 3(word) - Reduced write current cylinder.  Because bits are packed more
  327. closely on inner cylinders, it is often necessary to reduce the current used to
  328. write the bits so that nearby bits are not effected (the bits are actually
  329. smaller on the inner cylinders).  The PC/AT controllers assume that this is the
  330. same as the write precompensation cylinder and only use that value.
  331.  
  332. Offset 7(byte) - Maximum ECC data burst length.  The maximum number of bits that
  333. the ECC can correct.  The first and last bits in error in any sector must be
  334. within this length (inclusive) of each other or the ECC cannot correct the
  335. error.
  336.  
  337. Offset 8(byte) - Control byte.  Bits 0-2 specify the head step rate on cylinder-
  338. to-cylinder motion.
  339.  
  340. Offsets 9-11(byte) - Timeout values.  These values are used by the BIOS software
  341. to timeout disk operations.
  342.  
  343. Offset 12(word)   - Unused on a PC/XT.
  344.  
  345. Offset 14(byte)   - Unused on a PC/XT.
  346.